package com.droidblackbox.info;

import java.io.Serializable;

public class BlackBox implements Serializable {

	/**
     * 
     */
	private static final long serialVersionUID = -7975747305513752795L;

	private int index = 0;
	private String time = "";
	private int latitude = 0;
	private int longitude = 0;
	private String orientation = "";
	private int speed = 0;
	private boolean accident = false;
	private String address = "";

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public int getLatitude() {
		return latitude;
	}

	public void setLatitude(int latitude) {
		this.latitude = latitude;
	}

	public int getLongitude() {
		return longitude;
	}

	public void setLongitude(int longitude) {
		this.longitude = longitude;
	}

	public String getOrientation() {
		return orientation;
	}

	public void setOrientation(String orientation) {
		this.orientation = orientation;
	}

	public int getSpeed() {
		return speed;
	}

	public void setSpeed(int speed) {
		this.speed = speed;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public boolean isAccident() {
		return accident;
	}

	public void setAccident(boolean accident) {
		this.accident = accident;
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(index).append(" , ");
		sb.append(time).append(" , ");
		sb.append(latitude).append(" , ");
		sb.append(longitude).append(" , ");
		sb.append(orientation).append(" , ");
		sb.append(speed).append(" , ");
		sb.append(accident).append(" , ");
		sb.append(address);
		sb.append("\r\n");
		return sb.toString();
	}

}
